package com.activenetwork.util.dropdownmenu;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

public class MenuUL{
	private WebElement ul;
	
	public MenuUL(WebElement ul){
		this.ul = ul;
	}
	
	public void select(String option){
		WebElement li = ul.findElement(By.xpath("./li[@data-value='" + option + "']//a"));
		li.click();
	}
	
	public void select(By liBy){
		WebElement li = ul.findElement(liBy);
		li.click();
	}
}
